<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>部门</title>
</head>
<body>
<div>
    <div>
        部门管理<br/>
        <a href="/input.do">新增</a>
    </div>
    <form action="/list" method="post">
        关键字:<input type="text" name="name" value="${qo.keyword}">
        血量:<input type="text" name="minHp" value="${qo.minHp}">-<input type="text" name="maxHp" value="${qo.maxHp}">
        <input type="submit" value="查找">
    </form>
    <div>
        <table cellpadding="0" cellspacing="0" border="1" align="center" width="100%">
            <tr>
                <td>id</td>
                <td>名称</td>
                <td>别名</td>
                <td>血量</td>
                <td>蓝量</td>
                <td>操作</td>
            </tr>
            <c:forEach items="${pageResult.list}" var="h">
                <tr>
                    <td>${h.id}</td>
                    <td>${h.name}</td>
                    <td>${h.nickname}</td>
                    <td>${h.hp}</td>
                    <td>${h.mp}</td>
                    <td>
                        <a href="/delete?id=${h.id}">删除</a>
                        <a href="/input?id=${h.id}">修改</a>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </div>
</div>
</body>
</html>
